import request from '@/utils/request'


export function getPlatformUsableList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/platform/getUsableList',
    method: 'post',
    data: query
  })
}   


export function getPlatformList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/platform/getList',
    method: 'post',
    data: query
  })
}   

export function savePlatform(query) {
  return request({
    url: '/pagination/admin/platform/save',
    method: 'post',
    data: query
  })
}

export function removePlatform(query) {
  return request({
    url: '/pagination/admin/platform/remove',
    method: 'post',
    data: query
  })
}
export function getPlatformDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/pagination/admin/platform/getDetail',
    method: 'post',
    data: query
  })
}